// Debug
// (c) jimon game studio

#ifndef JEH_JEDEBUG
#define JEH_JEDEBUG

#include "Config_Engine.h"

#include "assert.h"

//! Debug break define
#if defined(JE_DEBUG)
	#if defined(JE_WIN) && defined(JE_MSVC)
		#define JEBREAK(cond) if (cond) {_asm int 3}
	#else
		#define JEBREAK(cond) assert( !(cond) );
	#endif
#else
	#define JEBREAK(cond)
#endif

//! Assert define
#define JEASSERT(exp) JEBREAK(!( exp ))

//! Assert that works even in release mode
#define JEASSERT_NODEBUG(exp) assert( exp );

#endif
